<?php
//Esta pagina recibira el Id del cliente y lo va a consultar
	include "conexion.php";

    $employee=$_POST["empleado"];
    $miembro = mysql_query("SELECT * FROM member m WHERE m.member_email='$employee'");
    $row = mysql_fetch_array($miembro);
    include "cerrar_conexion.php";
?>


<html>
    <head>
        <title>Editar empleado</title>
        <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'></script>
        <link rel="stylesheet" type="text/css" href="css/jquery-ui-1.7.2.custom.css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
		<script src='funciones/funciones_newemployee.js'></script>
        <link rel='stylesheet' href='estilos.css'>
    </head>
    <body>
    <p>
		<label class="Titulo">Edit employee</label>
		<?php echo $miembro['member_name'];?>
		</p>
        <form class='introducir' method='POST' action='edit_employee.php'>
            <div><label>Name:</label><input name='nombre' type='text'  class='nombre' value='<?php echo $row['member_name'];?>'>
            </div>
            <div><label>First surname:</label><input name='apellido1' type='text'  class='apellido1' value='<?php echo $row['member_surname1'];?>'>
			</div>
            <div><label>Second surname:</label><input name='apellido2' type='text'  class='apellido2' value='<?php echo $row['member_surname2'];?>'>
			</div>
            <div><label>Email:</label><input name='email' type='text'  class='email' value='<?php echo $row['member_email'];?>'>
			</div>
			<input type="hidden" name="id" value='<?php echo $row['idMember'];?>'>
            <div><input type='submit' value='Submit' class='boton'></div>
        </form>
    </body>
</html>